home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 26
/
Cream of the Crop 26.iso
/
program
/
snip9707.zip
/
STRINGIZ.H
< prev
next >
Wrap
C/C++ Source or Header
|
1997-07-05
|
535b
|
33 lines
/* +++Date last modified: 05-Jul-1997 */
/*
** STRINGIZ.H - Macros to use the ANSI/ISO preprocessor "stringize" macro
*/
#ifndef STRINGIZ__H
#define STRINGIZ__H
#define stringize(y) #y
#define add_quotes(x) stringize (x)
#ifdef TEST
#include <stdio.h>
#include <string.h>
#define FILENAME MYFILE.XYZ
int main()
{
char tmp[80];
strcpy(tmp, "File: ");
strcat(tmp, add_quotes(FILENAME));
printf("%s\n", tmp);
return 0;
}
#endif /* TEST */
#endif /* STRINGIZ__H */